/*
 * File Name:               UIMutexChild.cs
 * 
 * Description:             UI互斥组件 子节点
 * Author:                  lisiyu <576603306@qq.com>

 * Create Date:             2017/03/20
 */

using UnityEngine.EventSystems;

public class UIMutexChild : UIBehaviour
{
    // 激活状态列表
    public int[] ActiveStates;

    public void display(int curState)
    {
        if (ActiveStates == null) return;
        foreach (var state in ActiveStates)
        {
            if (state == curState)
            {
                gameObject.SetActive(true);
                return;
            }
        }
        gameObject.SetActive(false);
    }
}
